package com.huaruan.youdi.base;

import android.app.Application;
import android.content.Context;

import cn.jpush.android.api.JPushInterface;

/**
 * Created by dingke on 20/8/25.
 */

public class BaseApplication extends Application {
    public Context appContext;
    public static BaseApplication _instance;

    @Override
    public void onCreate() {
        super.onCreate();
        appContext = getApplicationContext();
        _instance = this;
        JPushInterface.init(this);
    }

    public static BaseApplication getInstance() {
        return _instance;
    }

    public Context getContext() {
        return appContext;
    }

}
